/* SharePoint Console Project
 * Http://SharePointConsole.codeplex.com
 * Copyright Jean-Alain Baeyens (2009)
 * Software under Microsoft Reciprocal License (Ms-RL)
 */

using System;
using System.Collections.Specialized;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.StsAdmin;

namespace MS.Samples.SharePoint
{
    public class StsAdmExtensionDemo : ISPStsadmCommand
    {
        public string GetHelpMessage(string command)
        {
            return "No parameters";
        }

        public int Run(string command, StringDictionary keyValues, out string output)
        {
            command = command.ToLowerInvariant();

            switch (command)
            {
                case "stsadmextensiondemo":
                    output = "This is the result of the StsAdmExtensionDemo command";
                    return 0; 

                default:
                    throw new InvalidOperationException();
            }
        }
    }
}